package com.lqian.blog.dao.pojo;

import lombok.Data;

@Data
public class Article {

    public static final int Article_TOP = 1; //热榜

    public static final int Article_Common = 0; //是否置顶

    private Long id;

    private String title;

    private String summary; //简介

    private Integer commentCounts;//评论数量

    private Integer viewCounts;//浏览数量

    /**
     * 作者id
     */
    private Long authorId;
    /**
     * 内容id
     */
    private Long bodyId;
    /**
     *类别id
     */
    private Long categoryId;

    /**
     * 置顶
     */
    private Integer weight;


    /**
     * 创建时间
     */
    private Long createDate;

    //mybatis-plus更改对象的属性时  如果一个对象的属性不为默认值不为null  都会生成到更改的语句中
    // int --> 0
    // Integer --> null

}
